<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<base href="<%=basePath%>">
<script type="text/javascript">
	function gotoPage(){
		var page=document.getElementById("pagesize").value;
		var url="gotoList?pageNow="+page+"&pageSize="+${pageSize}+"&finds=${request.finds}";
		document.location.href=url;
	}
</script>
<div style="width: 740px; border-bottom: 2px dotted;">
	<img src="images/1.png" />文章列表

</div>
<div style="width: 740px;">
	
	
	
	
	
	

    <table class="sui-table">
      <tbody>
      <c:forEach items="${request.list}" var="job">
			<tr>
				<td style="border-bottom: 1px dotted; width: 500px;"><a
					href="readJobStatusSuc?job.id=${job.id}" title="${job.title}">${ job.title}</a></td>
				<td style="border-bottom: 1px dotted; width: 120px;">[兼职信息]</td>
				<td style="border-bottom: 1px dotted; width: 120px;"><fmt:formatDate
						value="${job.date }" pattern="yyyy-MM-dd" /></td>
			</tr>
		</c:forEach>
      </tbody>
    </table>

	
</div>
<c:if test="${type eq 'list'}">


	<div class="sui-pagination" style="text-align: center">
		<ul>
			<li class="prev "><a
				href="gotoList?pageNow=1&pageSize=${pageSize}&finds=${request.finds}">首页</a></li>
			<li class="prev "><a
				href="gotoList?pageNow=${pageNow-1}&pageSize=${pageSize}&finds=${request.finds}">«上一页</a></li>
			<li class="next"><a
				href="gotoList?pageNow=${pageNow+1}&pageSize=${pageSize}&finds=${request.finds}">下一页»</a></li>
			<li class="prev "><a
				href="gotoList?pageNow=${pageCount}&pageSize=${pageSize}&finds=${request.finds}">末页</a></li>
		</ul>
		<div>
			<span>当前页数 ${ pageNow}/共${ pageCount}页&nbsp;</span><span> 到 <input
				class="page-num" type="text" id="pagesize">
			<button class="page-confirm" onclick="gotoPage()">确定</button> 页
			</span>
		</div>
	</div>



</c:if>
<br />
